package tieba.service;

import java.util.List;
import java.util.Map;

public interface IBaseService<T> {

	public void save(T entity);

	public void remove(T entity);

	public void update(T entity);

	public T findById(int id);

	public boolean findByName(String name);

	public List<T> getList(Integer pageNum, Integer pageSize, String name,
			String sort);

	public List<T> searchList(Map<String, Object> conditions, Integer pageNum,
			Integer pageSize, String name, String sort);
}
